/**
 * 
 */
package com.roc.pojo;

import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.roc.util.constant.AuditingResultCodeType;

/**
 * @author  dxpeng
 * 2014-8-9 下午10:01:35
 */
@Entity
@Table(name="t_Auditing_item")
public class AuditingItem extends BaseBean implements Serializable {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;


	@Id
	@GeneratedValue(strategy=GenerationType.SEQUENCE,generator="SEQ_Auditing_item_two")
	@SequenceGenerator(name="SEQ_Auditing_item_two",sequenceName="SEQ_Auditing_item_two")
	private long id;
	            
	
	private String audit_code;//审核编码
	private String audit_name ;//审核名称
	private String obj_Audited ;//被审核的对象，临时商户号
	private String result_code ;//结果编码
	private String result_detail ;//审核意见
	
	@Transient
	private String pathUrl ;
	@Transient
	private String resultCodeName ;//审核结论中文
	@Transient
	private String createDate;//日期
	@Transient
	private String bankBelongCd;//所属机构
	@Transient
	private String agentName;//代理商
	@Transient
	private String shortName;//简称
	@Transient
	private String merinfoName;//商户名（全称）
	@Transient
	private String contanctName;//联系人
	@Transient
	private String contanctPh;//联系人电话
	@Transient
	private String auditorName;//审核人
	@Transient
	private String branchcompy;//所属分公司
	@Transient
	private String oneagent;//一级代理商
	
	
	public AuditingItem(){}
	/**
	 * @return the id
	 */
	public long getId() {
		return id;
	}
	/**
	 * @param id the id to set
	 */
	public void setId(long id) {
		this.id = id;
	}
	public String getAudit_code() {
		return audit_code;
	}
	public void setAudit_code(String audit_code) {
		this.audit_code = audit_code;
	}
	public String getAudit_name() {
		return audit_name;
	}
	public void setAudit_name(String audit_name) {
		this.audit_name = audit_name;
	}
	public String getObj_Audited() {
		return obj_Audited;
	}
	public void setObj_Audited(String obj_Audited) {
		this.obj_Audited = obj_Audited;
	}
	public String getResult_code() {
		return result_code;
	}
	public void setResult_code(String result_code) {
		this.result_code = result_code;
	}
	public String getResult_detail() {
		return result_detail;
	}
	public void setResult_detail(String result_detail) {
		this.result_detail = result_detail;
	}
	public String getPathUrl() {
		return pathUrl;
	}
	public void setPathUrl(String pathUrl) {
		this.pathUrl = pathUrl;
	}
	
	public String getResultCodeName() {
		if(result_code==null || "".equals(result_code)){
			return resultCodeName;
		}
		resultCodeName = AuditingResultCodeType.valueOfCode(result_code).getName();
		return resultCodeName;
	}
	public void setResultCodeName(String resultCodeName) {
		this.resultCodeName = resultCodeName;
	}
	public String getCreateDate() {
		return createDate;
	}
	public void setCreateDate(String createDate) {
		this.createDate = createDate;
	}
	public String getBankBelongCd() {
		return bankBelongCd;
	}
	public void setBankBelongCd(String bankBelongCd) {
		this.bankBelongCd = bankBelongCd;
	}
	public String getAgentName() {
		return agentName;
	}
	public void setAgentName(String agentName) {
		this.agentName = agentName;
	}
	public String getShortName() {
		return shortName;
	}
	public void setShortName(String shortName) {
		this.shortName = shortName;
	}
	public String getMerinfoName() {
		return merinfoName;
	}
	public void setMerinfoName(String merinfoName) {
		this.merinfoName = merinfoName;
	}
	public String getContanctName() {
		return contanctName;
	}
	public void setContanctName(String contanctName) {
		this.contanctName = contanctName;
	}
	public String getContanctPh() {
		return contanctPh;
	}
	public void setContanctPh(String contanctPh) {
		this.contanctPh = contanctPh;
	}
	public String getAuditorName() {
		return auditorName;
	}
	public void setAuditorName(String auditorName) {
		this.auditorName = auditorName;
	}
	public String getBranchcompy() {
		return branchcompy;
	}
	public void setBranchcompy(String branchcompy) {
		this.branchcompy = branchcompy;
	}
	public String getOneagent() {
		return oneagent;
	}
	public void setOneagent(String oneagent) {
		this.oneagent = oneagent;
	}
	
}